package routers

import (
	"github.com/gin-gonic/gin"
	"shop-api/controller"
)

func privateAddr(router *gin.RouterGroup) {
	api := &controller.AddrController{}
	address := router.Group("/address")
	{
		address.POST("/addAddr", api.Save)
		address.PUT("/defaultAddr/:addrId", api.Default)
		address.PUT("/updateAddr", api.Update)
		address.GET("/addrInfo/:addrId", api.Info)
		address.GET("/list", api.List)
		address.DELETE("/deleteAddr/:addrId", api.Delete)
	}
}
